package com.pathfinder.model;

/**
 * Date: 08.05.11
 *
 * @author Victor Passichenko (vpas@yandex-team.ru)
 */
public class Player {
    private int id;
    private PlayerInfo info;
    private boolean ready;

    private float latitude;
    private float longitude;

    public Player(String name) {
        this(new PlayerInfo(name));
    }

    public Player(PlayerInfo info) {
        this.info = info;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public float getLatitude() {
        return latitude;
    }

    public void setLatitude(float latitude) {
        this.latitude = latitude;
    }

    public float getLongitude() {
        return longitude;
    }

    public void setLongitude(float longitude) {
        this.longitude = longitude;
    }

    public void setInfo(PlayerInfo info) {
        this.info = info;
    }

    public void setReady(boolean ready) {
        this.ready = ready;
    }

    public PlayerInfo getInfo() {
        return info;
    }

    public boolean isReady() {
        return ready;
    }
}
